.Header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr min-content;
  grid-template-areas: 'search filters';
  grid-gap: 8px;
  align-items: start;
  padding: var(--space-md);
  background: var(--gradient-body-background, var(--body-background));
  color: var(--text-secondary);
}

.frameless:not(.fullscreen) .Header {
  padding-right: calc(
    var(--overlay-controls-width) - env(titlebar-area-x, 0px) + 10px
  );
}

.Header__filters {
  grid-area: filters;
  display: flex;
  align-self: center;
  justify-self: flex-end;
  gap: 1em;
}

.Header__filters .FormControl {
  margin-inline-end: 8px;
}

.Header__search {
  grid-area: search;
  max-width: 700px;
}

.Header__search .FormControl {
  width: 100%;
}

.Header__summary {
  grid-area: summary;
  text-align: end;
  white-space: nowrap;
  margin-inline-start: 8px;
}

/* TODO move following styles to the components which use them */

.iconsWrapper {
  display: flex;
  align-content: center;
  justify-content: center;
}

.refreshIcon:hover,
.svg-button:focus-visible .refreshIcon {
  animation: refreshing 2s infinite;
}

@keyframes refreshing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
